package cc.mrbird.statistical.dao;

import cc.mrbird.assets.domain.AssetType;
import cc.mrbird.statistical.domain.RegionalAnalysis;
import cc.mrbird.statistical.domain.UnitAnalysis;
import cc.mrbird.common.config.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UnitAnalysisMapper extends MyMapper<UnitAnalysis> {
    List<AssetType> findTotalType(Long unit_id); //根据当前单位id查询所有设备宝贝类型
    Integer findFailureRateByType(@Param("asset_type") String asset_type, @Param("discard_time")String discard_time,@Param("unit_id") Long unit_id);
    Integer findAllByType(@Param("asset_type") String asset_type, @Param("discard_time")String discard_time,@Param("unit_id") Long unit_id);
}
